package com.bookcloud.java21.chapter4.继承方法重写411;

public class Dog extends Animal {
  @Override
  public void eat() {
    System.out.println(this.getName() + "=>狗正喜欢吃骨头");
  }

  public Dog(String name, int age) {
    super(name, age);
  }

  public void func() {
    System.out.println(this.getName() + "=>狗会看家");
  }
}
